import request from '@/utils/request'

export function reliability(type, courseId, teacherId) {
  return request({
    url: '/evaluation_analysis/reliability',
    method: 'get',
    params: {
      type,
      courseId,
      teacherId
    }
  })
}

export function validity(type, factorNum, delta) {
  return request({
    url: '/evaluation_analysis/validity',
    method: 'get',
    params: {
      type,
      factorNum,
      delta
    }
  })
}

export function itemAnalysis(type, quantile) {
  return request({
    url: '/evaluation_analysis/item_analysis',
    method: 'get',
    params: {
      type,
      quantile
    }
  })
}

export function entropyWeight(type, processTypes, delta) {
  return request({
    url: '/evaluation_analysis/weight',
    method: 'post',
    params: {
      type,
      delta
    },
    data: processTypes
  })
}

export function getQuestList(type) {
  return request({
    url: '/evaluation_analysis/quest',
    method: 'get',
    params: {
      type
    }
  })
}
